<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateKdTestReportsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('kd_test_reports', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('user_id')->comment('修改者');
            $table->tinyInteger('type')->comment('小概念PDF类别');
            $table->text('title')->comment('标题');
            $table->integer('sort')->default(0)->comment('排序');
            $table->text('attachment')->nullable()->comment('附件');
            $table->tinyInteger('is_show')->default(1)->comment('1显示,-1隐藏');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('kd_test_reports');
    }
}
